package cn.ibdsr.human.constant;

/**
 * @author chenglx
 * @version V1.0
 * @description
 * @createDate 2020/3/20 15:37
 * <p>
 * Date Author Description
 * ------------------------------------------------------
 * 2020/3/20 chenglx init
 */
public enum CookieEnum {

    /**
     * 用户在family-memory系统登录后的凭证cookie：存活时间（单位：秒）为3天
     */
    FM_LOGIN_COOKIE("fm_sid", 3 * 24 * 3600, "/"),

    ;

    public String getCookieName() {
        return this.cookieName;
    }

    public int getTtl() {
        return this.ttl;
    }

    public String getCookiePath() {
        return this.cookiePath;
    }

    /**
     * cookie名称
     */
    private String cookieName;
    /**
     * cookie存活时间（单位：秒）
     */
    private int ttl;
    /**
     * cookie路径
     */
    private String cookiePath;

    CookieEnum(String cookieName, int ttl, String cookiePath) {
        this.cookieName = cookieName;
        this.ttl = ttl;
        this.cookiePath = cookiePath;
    }

}
